package com.andy.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 引入驱动
 * 配置文件
 * 1.在application.yml中配置了数据源
 * 2.配置mybatis-plus
 *      扫面mapper
 *      设置xml映射文件的路径
 * 3.逻辑删除
 *  1.配置全局逻辑删除规则（省略默认开启
 *  2.配置逻辑删除组件（高版本省略
 *  3.在实体类里面添加@TableLogic注解到逻辑删除字段
 */
@MapperScan("com.andy.gulimall.product.dao")
@EnableDiscoveryClient
@SpringBootApplication
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
